//
//  ByNetUserModel.m
//  beibei_ios
//
//  Created by hebidu on 16/4/15.
//  Copyright © 2016年 hebidu. All rights reserved.
//

#import "ByNetUserModel.h"

@implementation ByNetUserModel

- (void)setAttributes:(NSDictionary *)jsonDic {
    
    [super setAttributes:jsonDic];
    
    if (!jsonDic[@"uid"]) {
        self.uid = jsonDic[@"id"];
    }
    
    NSDictionary *open_im_info = jsonDic[@"open_im_info"];
    self.im_username = open_im_info[@"userid"];
    self.im_password = open_im_info[@"password"];
    
    NSLog(@"%@", self);
}

@end
